package com.itheima.task.demo;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
@Component
public class TaskDemo {

    @Scheduled(cron = "59 59 23 L * *")
    public void demo(){
        System.out.println("定时任务执行了..... " + new Date());
    }
}
